#include "page_login.h"
#include "ui_page_login.h"
#include "mainwindow.h"
Page_Login::Page_Login(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Page_Login)
{
    ui->setupUi(this);
}

Page_Login::~Page_Login()
{
    delete ui;
}

void Page_Login::on_btn_login_clicked()
{
    //数据库验证账号密码

    //如果失败就提示

    //成功进入主界面
    emit sendLoginSuccess();



}
//退出按钮
void Page_Login::on_btn_exit_clicked()
{
    //退出
    exit(0);
}
